package cn.itsource.pethome.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //{"currentPage":1,"pageSize":5}
    private Integer currentPage;
    private Integer pageSize;
    public Integer getLocalPage(){
        return (this.currentPage-1)*pageSize;
    }
}
